using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class meal_seqMap : EntityTypeConfiguration<meal_seq>
    {
        public meal_seqMap()
        {
            // Primary Key
            this.HasKey(t => t.meal_seq_id);

            // Properties
            this.Property(t => t.meal_seq_name)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("meal_seq");
            this.Property(t => t.meal_seq_id).HasColumnName("meal_seq_id");
            this.Property(t => t.meal_seq_name).HasColumnName("meal_seq_name");
        }
    }
}
